//
//  SearchModel.m
//  PerfectWorld
//
//  Created by dllo on 16/8/30.
//  Copyright © 2016年 LST. All rights reserved.
//

#import "SearchModel.h"
#import "ListModel.h"
@implementation SearchModel

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"list"]) {
        NSMutableArray<ListModel *> *array = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            ListModel * list = [ListModel modelWithDic:dic];
            [array addObject:list];
        }
        _list = array;
    }
}


@end
